package com.guet.mapper;

import com.github.pagehelper.Page;
import com.guet.DTO.CoursewarePageDTO;
import com.guet.Entity.Courseware;
import com.guet.VO.CoursewareVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CoursewareMapper {
    void insert(Courseware courseware);

    Page<CoursewareVO> list(CoursewarePageDTO coursewarePageDTO);

    CoursewareVO queryById(Integer id);

    @Delete("delete from courseware where id = #{id}")
    void deleteById(Integer id);
}
